package main

import (
	"goruntimeCrawler/frontend/controller"
	"net/http"
)

func main()  {
	file:=http.FileServer(http.Dir("view"))
	http.Handle("/",
		file,
	)
	http.Handle("/search",
		controller.CreateSeachResultHandler("./view/template.html"),
		)

	err:=http.ListenAndServe(":8888",nil)
	if err!=nil {

	}
}
